package main

import (
	"fmt"
	"go.uber.org/zap"
	"goods_rpc/consul"
)

func init() {
	zapconfig := zap.NewDevelopmentConfig()
	zapconfig.OutputPaths = []string{
		"./goods.log",
		"stdout",
	}
	logg, err := zapconfig.Build()
	if err != nil {
		fmt.Println("日志编译失败", err)
		return
	}
	zap.ReplaceGlobals(logg)
}

func main() {
	consul.Consul()
	zap.S().Info("启动：：")
}
